/*
 * webpack config
 * @Author: JohnTrump
 * @Date: 2020-01-16 11:24:12
 * @Last Modified by: JohnTrump
 * @Last Modified time: 2020-01-17 16:16:04
 */
// const ENV = process.env.NODE_ENV || "development";
// const CDN = process.env.CDN || "//static.ethte.com/icbs";

module.exports = {
  /* 非正式环境, 为本地 */
  publicPath: "./",
  // publicPath: ENV === "production" ? CDN : "/",
  configureWebpack: {
    devServer: {
      open: "Google Chrome",
    },
  },
  css: {
    loaderOptions: {
      less: {
        // 定制主题
        // https://www.antdv.com/docs/vue/customize-theme-cn/#Ant-Design-Vue-%E7%9A%84%E6%A0%B7%E5%BC%8F%E5%8F%98%E9%87%8F
        // modifyVars: { },
        javascriptEnabled: true,
      },
    },
  },
};
